home *** CD-ROM | disk | FTP | other *** search
/ Magnum One / Magnum One (Mid-American Digital) (Disc Manufacturing).iso / d3 / amac36.arc / FILE22.QM < prev    next >
Text File  |  1991-03-16  |  53KB  |  1,211 lines

  1. *                                  (FILE22).QM
  2. *┌───────────────────────── (INDEX) FileManager Macros ────────────────────────┐
  3. *│
  4. *│@(F6)  Turn "DIR" list into a "8.3" list of filenames (T.Farley)    <-chg
  5. *│
  6. *│#(F3_) Spell Check WITH       Backup, QCONFIG.DAT backups ON or OFF
  7. *│#(F4_) Spell Check WITHOUT    Backup, QCONFIG.DAT backups ON or OFF
  8. *│#(F5_) SAVE  file  WITHOUT    Backup, QCONFIG.DAT backups ON
  9. *│#(F6_) SAVE  file  WITHOUT    Backup, QCONFIG.DAT backups ON or OFF
  10. *│#(F7_) DELETE CurrentFileName Backup
  11. *│#(F8_) EDIT   CurrentFileName Backup
  12. *│@(PgUp), Page Up   by paragraphs, Modified "Page Up"
  13. *│@(PgDn), Page Down by paragraphs, modified "Page Dn"
  14. *│^(w_)    Scroll UP   cursor bar stays fixed
  15. *│@(w)     Scroll UP   two windows in sync
  16. *│^(z_)    Scroll DOWN cursor bar stays fixed
  17. *│@(z)     Scroll DOWN two windows in sync
  18. *│
  19. *│@(7)   LOAD all files in "Ring"
  20. *│@(1)   LOAD file from sorted list
  21. *│@(4)   LOAD file from "PickList", wild cards OK
  22. *│@(5)   LOAD file whose name is at the cursor
  23. *│@(6)   re-LOAD current file from disk copy
  24. *│@(3)   DELETE file from sorted list
  25. *│@(9)   EDIT file from "RingList"
  26. *│@(0)   EDIT file from "RingList" if new files have been loaded
  27. *│@(2)   READ macfile & LOAD it's txtfile from sorted list
  28. *│@(8)   READ macfile of txtfile that is loaded
  29. *│@(F7)  READ macfile & LOAD it's txtfile from txtfile list
  30. *│@(F8)  READ macfile from macfile list, txtfile is not loaded
  31. *│
  32. *│@(F1)  SAVE file with name "Mos_Day_Hour_Min.Ext"
  33. *│@(F2)  SAVE file with name "CurrentFileName.Mos_Day"
  34. *│@(F3)  SAVE Read-Only files
  35. *│@(F4)  EXECUTE Dos command from List
  36. *│@(F5)  EXECUTE Dos command from List/ with CurrentFileName
  37. *│
  38. *│@(f)   Execute programs requiring filename without full path name.
  39. *│@(h)   Select Index item with cursor line, then <enter>.
  40. *│@(q)-  QUIT all files in "Ring"
  41. *│
  42. *│(Index) - How to locate macro or item below from Index using @h
  43. *│(Description)
  44. *│(Startup)
  45. *│(Macros)
  46. *│(Other) Macros
  47. *│(Version) history
  48. *└────────[ be sure to leave at least one blank line at end of Index  ]────────┘
  49.  
  50.  
  51.  
  52. * (Index) Use;
  53. *
  54. * To locate a macro or item in this file, press @h, place the cursor
  55. * line on the desired item in the Index above, and press <enter>.
  56. * See BOOK15.QM for more details.
  57.  
  58.  
  59.  
  60. * (Description):
  61.  
  62. * (FILE22).QM  QEdit macros allow  the user  to select files  from a list
  63. * to: either load  a file, read a  macfile, delete a  file, read a macfile
  64. * of loaded txtfile,  save a read-only  file, or save  files with the name
  65. * either  09141025.EXT or  file NAME.914.  File sorting  is done  using DX
  66. * Directory Extender, not included with these files.  Spell  check  macros
  67. * with ShareSpell.
  68.  
  69. * File sorting is done using DX Directory Extender, v2.11. If the newer
  70. * version 2.60 is used and it is NOT registered, the DX heading will
  71. * show in the file selection window of @1 to @5 and the initial cursor
  72. * line will not be positioned on the first files in the selection list.
  73. * The file selection can be still be made by moving the cursor line to
  74. * the desired file and pressing <enter>. Alternatively, you can either
  75. * register DX or change the macros. I suggest registration. DX is the
  76. * most powerful DOS file and directory manager available.
  77.  
  78. * For (other) macros, see ALLMACRO.INF
  79.  
  80. * These macros require "QEdit and QMAC v2.1, February, 1990" or later.
  81.  
  82. * (Startup): See also FILE.DOC for requirements.
  83. *
  84. * To BEGIN, just type "START FILE" <Enter>. All pertinent files will be
  85. * loaded in the "Ring" for viewing, and FILE22.MAC is read.
  86. * Alternatively, type "START FILE 0" <Enter> and the disk copies of all
  87. * files in the "Ring" will be loaded ready for editing, saving time.
  88.  
  89.  
  90.  
  91. *(Macros):-------------------
  92. *
  93. *┌──────────────────────────────────────────────────────────────────┐
  94. *│@(1) Selects file to LOAD from sorted list of files in directory  │
  95. *└──────────────────────────────────────────────────────────────────┘
  96. *
  97. @1 Macrobegin
  98.         altwordset                      * For all file names
  99.         EditFile "file.srt" return      * Load sort list
  100.         pause                           * Select sort type
  101.         copy                            * Copy line to scrap
  102.         quit                            * Quit file.srt
  103.         DOS "file-DX "                  * Make/sort file list
  104.         paste return return             *
  105.         EditFile "c:!" return           * Load sorted file list
  106.         cursordown insertline           *
  107.         cursordown                      * Get to first file name line
  108.         pause                           * Pause to select file
  109.         begline wordright               * Put cursor on file name
  110.         markword copy                   * Mark/copy file name
  111.         killfile quit                   * Kill/quit c:!
  112.         EditFile paste return           * Load file
  113.         defaultwordset                  * Reset default
  114. *
  115. * 68 bytes Sun  09-09-1990  14:38:25
  116.  
  117.  
  118.  
  119. *┌─────────────────────────────────────────────────────────────────────┐
  120. *│@(2) LOAD txtfile/READ macfile from sorted list of files in directory│
  121. *└─────────────────────────────────────────────────────────────────────┘
  122. *
  123. @2 Macrobegin
  124.         altwordset                      * For all file names
  125.         DOS "file-DX mac d-"            * Sort macfiles by date
  126.         return return                   *
  127.         EditFile "c:!" return           * Load sorted file list
  128.         cursordown insertline           *
  129.         cursordown                      * Get to first file name line
  130.         pause                           * Pause to select
  131.         begline                         * Re-position cursor if moved
  132.         find "." return return          * Select it and get to dot
  133.         CursorRight delrtword CursorLeft* Delete extension
  134.         markword copy                   * Mark/copy file name - no ext
  135.         killfile quit                   * Kill/quit c:!
  136.         EditFile paste  "qm" return     * Load txtfile
  137.         defaultwordset                  * Reset default
  138.         macroread paste "mac" return    * Read macfile
  139. *
  140. * 78 bytes Sun  09-09-1990  14:38:29
  141.  
  142.  
  143.  
  144. *┌──────────────────────────────────────────────────────────────────┐
  145. *│@(3) Selects file to DELETE from sorted list of files in directory│
  146. *└──────────────────────────────────────────────────────────────────┘
  147. *
  148. * Be careful to select ONLY the file you want deleted.
  149. *
  150. @3 Macrobegin
  151.         altwordset                      * For all file names
  152.         EditFile "file.srt" return      * Load sort list
  153.         pause                           * Pause to select sort
  154.         markline copy paste             * Paste selected line
  155.         begline markword                * Mark file ext
  156.         quit                            * Quit file.srt
  157.         DOS "file-DX "                  * Make/sort file list
  158.         paste return return             *
  159.         EditFile "c:!" return           * Load sorted file list
  160.         cursordown insertline           *
  161.         cursordown                      * Get to first file name line
  162.         pause                           * Pause to select file
  163.         begline wordright               * Put cursor on file name
  164.         markword copy                   * Select it
  165.         insertline                      * Insert line in c:!
  166.         paste                           * Paste file name
  167.         copy                            * Copy file name to scrap
  168.         DOS "del " paste return return  * Delete select file
  169.         killfile quit                   * Kill/quit c:!
  170.         defaultwordset                  * Reset default
  171. *
  172. * 84 bytes Sun  09-09-1990  14:38:34
  173.  
  174.  
  175.  
  176.  
  177. *┌─────────────────────────────┐
  178. *│@(4) Load Files From PickList│
  179. *└─────────────────────────────┘
  180. *
  181. * To run, just press Alt and 4 at the same time. At the prompt "File=",
  182. * enter a [file name(s)] and [file sort option] to make a PickList
  183. * using the following syntax:
  184. *
  185. *         [file name(s)]  [file sort option]  <enter>
  186. *
  187. * where [file sort option] is either "esda".
  188. *
  189. * For example, when entering:
  190. *
  191. *         c*.* s- (space must be included between name/sort option!)
  192. *
  193. * a file to load can be selected from a PickList of all files in
  194. * the current directory beginning with the letter "c" sorted by size,
  195. * largest first. Entering file name(s) WITHOUT a sort option, makes
  196. * a PickList sorted by name an then extension.
  197. *
  198. * This macro can sort files in any order. The following information is
  199. * from the file DX.DOC for Directory Extender. Please read this
  200. * document for more information on using the excellent program DX.
  201. *
  202. * Sorting is by name by default. The /SOrt switch without a value sorts
  203. * by name  and then extension in ascending  order. The sorting
  204. * criteria consists of: "N" for name, "E" for extension, "S" for  size,
  205. * "D" for date/time, "A" for attribute. Specifying  a letter by itself
  206. * or with a '+' suffix indicates ascending  order;  specifying a '-'
  207. * suffix indicates descending order.
  208. *
  209. * Examples of the sort options are:
  210. *
  211. *     [filename(s)] ne         => sort by name and extension
  212. *
  213. *     [filename(s)] e-n-       => sort files descending by
  214. *                                 extension first and then by
  215. *                                 descending name
  216. *
  217. *     [filename(s)] snd-       => sort files by ascending size,
  218. *                                 ascending name, and then
  219. *                                 descending date
  220. *
  221. @4 Macrobegin
  222.         unmarkblock altwordset          * For all file names
  223.         begline insertline              * Insert temp line
  224.        "File="                          *
  225.         endline markcolumn              * Start mark
  226.         pause                           * File name?, wild cards OK
  227.         markcolumn copy                 * Mark/copy file name to scrap
  228.         delline                         * Delete temp line
  229.         DOS "PICK " paste               * Make PickList
  230.         return return                   *
  231.         EditFile "c:!" return           * Load list
  232.         cursordown insertline           *
  233.         cursordown                      * Get to first file name line
  234.         pause                           * Pause to select file
  235.         begline wordright               * Put cursor on file name
  236.         markword copy                   * Mark/copy selection to scrap
  237.         killfile quit                   * Kill/quit c:!
  238.         EditFile paste return           * Load file selected
  239.         defaultwordset                  * Reset default
  240. *
  241. * 60 bytes Sun  09-09-1990  14:38:38
  242.  
  243.  
  244.  
  245.  
  246.  
  247. * ┌──────────────────────────────────────────────┐
  248. * │@(5)  LOADS a file whose name is at the cursor│
  249. * └──────────────────────────────────────────────┘
  250. * This picks up a file name that is sitting at the cursor position in the
  251. * editor, and loads it into another buffer (From SemWare BBS).
  252. *
  253. @5      Macrobegin                      *
  254.         altwordset                      * For all file names
  255.         markword                        * Mark file name
  256.         copy                            * Copy to scrap
  257.         EditFile                        * Load it
  258.         paste return                    *
  259.         defaultwordset                  *
  260. *
  261. * 11 bytes Sun  09-09-1990  14:38:43
  262.  
  263.  
  264.  
  265.  
  266. * ┌───────────────────────────────────────┐
  267. * │@(6) Reloads current file from disk    │
  268. * └───────────────────────────────────────┘
  269. *
  270. @6 Macrobegin
  271.    SplitLine EditFile CurrentFileName Return NewFile "N" Return
  272. *
  273. * 12 bytes Fri  08-10-1990  15:24:13
  274.  
  275.  
  276.  
  277.  
  278. * ┌────────────────────────────────────────────────────────┐
  279. * │@(7) Load all files in "Ring"                           │
  280. * └────────────────────────────────────────────────────────┘
  281. *
  282. * This macro is handy if you want to quickly load all files in the
  283. * ring. QEdit has the advantage that the EditFile, just like the QEdit
  284. * command line, can accept multiple file names together, separated by
  285. * spaces. Wild card file specification is also possible. The end result
  286. * is that files can be entered in QEdit's "ring" *without* actually
  287. * loading.  Qedit defers loading files in the ring until you either
  288. * EditFile or nextfiles into the file. This macro simply automatically
  289. * "loads" all files in the "Ring" by NextFiling through all files. If
  290. * your hard drive is slow (like mine), you'll appreciate the time
  291. * this macro saves. Run this macro twice to see the difference.
  292.  
  293. * If a file is set "read-only", press <Esc>, and run the macro until
  294. * all files are loaded. The technique using the NUL file as a place
  295. * marker was written by Kyle Watkins of SemWare and is used here with a
  296. * slight modification.
  297. *
  298. * See also QLSTxx.QM for using this macro to load files from a
  299. * FileList.
  300. *
  301. @7      Macrobegin
  302.         EditFile '!' Return      * Insert -or- GoTo NUL File
  303.         Begline CursorRight      * Put cursor in Col. 2 of NUL File
  304.         LOOP:                    * Main test loop
  305.             Nextfile             * Move to next files in Ring
  306.             CursorLeft           * Move cursor left (need for NUL test)
  307.             Jfalse LOOP:         * If couldn't move to left, it's not
  308.                                  * the NUL File AND cursor position
  309.                                  * has not changed -- LOOP again
  310.                                  *ELSE
  311.                                  * Check to see if in the NUL File
  312.             CursorLeft           * Move cursor left for NUL Test
  313.             Jfalse END:          * If couldn't move left -- We
  314.                                  * ARE in the NUL File and Need
  315.                                  * to END the Macro
  316.                                  *ELSE
  317.             CursorRight          * Move back to Col. 2 in NUL File
  318.         END:                     * Macro is DONE
  319.             Quit                 * Quit the NUL File
  320. *
  321. * 21 bytes Tue  10-30-1990  20:05:53
  322.  
  323.  
  324.  
  325.  
  326. *┌─────────────────────────────────────────────┐
  327. *│@(8) Reads macfile of txtfile that is loaded │
  328. *└─────────────────────────────────────────────┘
  329. *
  330. * From MACR28.QM
  331. *
  332. @8 Macrobegin
  333.    macroread CurrentFileName backspace backspace "mac" return
  334. *
  335. * 15 bytes Sun  09-09-1990  14:38:55
  336.  
  337.  
  338.  
  339.  
  340. * ┌────────────────────────────────────────────────────────────────────┐
  341. * │@(9) Make RingList, Load all files in ring, select file to edit     │
  342. * └────────────────────────────────────────────────────────────────────┘
  343. *
  344. * Does not make NEW RingList if already made.
  345.  
  346. * Both @9 and @0 have the disadvantage that each files in the ring is
  347. * loaded and modified while getting each FileName to scratch to make
  348. * the RingList. All files in the ring can be QUIT using @q macro.
  349. *
  350. @9      Macrobegin
  351.         prevfile unmarkblock    * Move to prevfile so file being
  352.                                 * edited is first files in RingList
  353.         EditFile "!" return     * Load/Edit RingList file !
  354.         endline begline         * If ! is already made, it has text
  355.         jtrue GETFILE:          * then GoTo GETFILE
  356.                                 *ELSE
  357.         dropanchor              *
  358.         storescrbuff "1" return * Clear scratch buffer
  359.         Begline CursorRight     * Put cursor in Col. 2 for StopFile
  360.  LOOP:                          * Main test loop
  361.         Nextfile                * Move to next files in Ring
  362.         splitline dropanchor    *
  363.         CurrentFileName         *
  364.         appendscrbuff "1" return* Append filename to scratch buffer
  365.         cut                     * Delete block
  366.         CursorLeft              * Move cursor left
  367.                                 * (need for StopFile test)
  368.         Jfalse DOIT:            * If couldn't move to left, cursor
  369.                                 * must be in Col. 1 and it's not
  370.                                 * the StopFile -- GO with DOIT
  371.                                 *ELSE
  372.                                 * Check to see if in the StopFile File
  373.         CursorLeft              * Move cursor left for StopFile Test
  374.         Jfalse RINGLIST:        * If couldn't move left again -- We
  375.                                 * ARE in the StopFile File and Need
  376.                                 * to GO to RINGLIST
  377.                                 *ELSE
  378.         CursorRight             * Restore Cursor to its previous
  379.                                 * position and GO with the DOIT
  380.  DOIT:                          * DOIT Loop
  381.         Jump LOOP:              * Return to the Main Loop
  382.  RINGLIST:                      * Get RingList into file
  383.         EditFile "!" return     * Load RingList file
  384.         getscrbuff "1" return   * Put RingList in it
  385.         delline unmarkblock     * Delete top line and unmark file
  386.  GETFILE:                       *
  387.         pause copy              * Pause and select file to edit
  388.         EditFile paste return   * and then begin editing it
  389. *
  390. * 58 bytes Mon  10-01-1990  10:56:15
  391.  
  392.  
  393.  
  394.  
  395. * ┌────────────────────────────────────────────────────────────────────┐
  396. * │@(0) Make RingList, Load all files in ring, select file to edit     │
  397. * └────────────────────────────────────────────────────────────────────┘
  398. *
  399. * Makes NEW RingList even if already made.
  400.  
  401. * Both @9 and @0 have the disadvantage that each files in the ring is
  402. * loaded and modified while getting each FileName to scratch to make
  403. * the RingList. All files in the ring can be QUIT using @q macro.
  404. *
  405. @0      Macrobegin
  406.         prevfile unmarkblock    * Move to prevfile so file being
  407.         dropanchor              * edited is first files in RingList
  408.         storescrbuff "1" return * Clear scratch buffer
  409.         Begline CursorRight     * Put cursor in Col. 2 for StopFile
  410.  LOOP:                          * Main test loop
  411.         Nextfile                * Move to next files in Ring
  412.         splitline dropanchor    *
  413.         CurrentFileName         *
  414.         appendscrbuff "1" return* Append filename to scratch buffer
  415.         cut                     * Delete block
  416.         CursorLeft              * Move cursor left
  417.                                 * (need for StopFile test)
  418.         Jfalse DOIT:            * If couldn't move to left, cursor
  419.                                 * must be in Col. 1 and it's not
  420.                                 * the StopFile -- GO with DOIT
  421.                                 *ELSE
  422.                                 * Check to see if in the StopFile File
  423.         CursorLeft              * Move cursor left for StopFile Test
  424.         Jfalse RINGLIST:        * If couldn't move left again -- We
  425.                                 * ARE in the StopFile File and Need
  426.                                 * to GO to RINGLIST
  427.                                 *ELSE
  428.         CursorRight             * Restore Cursor to its previous
  429.                                 * position and GO with the DOIT
  430.  DOIT:                          * DOIT Loop
  431.         Jump LOOP:              * Return to the Main Loop
  432.  RINGLIST:                      * Get RingList into file
  433.         EditFile "!" return     * Load RingList file
  434.         getscrbuff "1" return   * Put RingList in it
  435.         delline unmarkblock     * Delete top line and unmark file
  436.  GETFILE:                       *
  437.         pause copy              * Pause and select file to edit
  438.         Quit                    * Quit the RingList File
  439.         EditFile paste return   * and then begin editing it
  440. *
  441. * 50 bytes Mon  10-01-1990  11:02:09
  442.  
  443.  
  444.  
  445.  
  446.  
  447. *  ┌─────────────────────────────────────────────────┐
  448. *  │@(F1) Saves file with name "Mos_Day_Hour_Min.Ext"│
  449. *  └─────────────────────────────────────────────────┘
  450. *
  451. * This macro saves the current file with the name as
  452. * "Mos_Day_Hour_Min.Ext".  For example, @F1 saves this file as
  453. * 08191025.QM when date and time are Sun 08-19-1990  10:25:00.
  454. *
  455. * Insert must be ON.
  456. *
  457. * Thanks to Jim Wright for the neat idea how to condense date and time
  458. * with his macro in QE-MEM.ZIP. Like many other macro ideas from
  459. * others, they often seem so simple once we see and understand them
  460. * that we say "why didn't I think of that" - but I didn't !
  461.  
  462. @F1    Macrobegin
  463.  *************************************** TOGGLE INSERT ON*************
  464.        insertline                      * Insert test line
  465.        "a" CursorLeft "a"              * Insert "aa"
  466.        endline                         * If not at endline-insert is on
  467.  Jtrue FIN:                            * If at endline   -insert is off
  468.        toggleinsert                    * Toggle ON if off
  469.  FIN:                                  *
  470.        delline                         * Delete test line
  471.  *************************************** CONDENSE DATE & TIME *******
  472.        unmarkblock                     * Begin no marked block
  473.        insertline begline              * Insert line
  474.        insertdate inserttime           * Get date & time to condense
  475.        markline
  476.        delltword  delltword            * Delete seconds
  477.        backspace                       * Delete :
  478.        CursorLeft CursorLeft           * Keep minutes
  479.        backspace                       * Delete :
  480.        CursorLeft CursorLeft           * Keep hour
  481.        delltword  delltword            * Delete spaces and year
  482.        backspace                       * Delete -
  483.        CursorLeft CursorLeft           * Keep day
  484.        backspace                       * Delete -
  485.        CursorLeft CursorLeft           * Keep month
  486.        delltword  delltword            * Delete spaces & day name
  487.        endline                         * Go to end of condensed number
  488.        CurrentFileName                 * Get CurrentFileName
  489.        find "." return "LB" return     * Move to begin of extension
  490.        jtrue HASEXT:                   * If dot found, file has extn.
  491.                                        * and go to HASEXT
  492.                                        *ELSE
  493.        Endline "." CursorLeft          * Add ".", file has NO extn.
  494.  HASEXT:                               *
  495.        unmarkblock                     * unmark line
  496.        CursorLeft markcolumn           * Move off dot and mark it
  497.        find ":" return "b" return      * Move to :
  498.        CursorLeft deleteblock          * Del all but .ext of file name
  499.        cut                             * Get number.ext to scrap
  500.        writeblock paste return         * Save number.ext
  501. *
  502. * 63 bytes Sat  09-15-1990  09:58:56
  503. * 74 bytes Wed  02-13-1991  23:16:45 modified for files with no extn.
  504.  
  505.  
  506.  
  507.  
  508. * ┌────────────────────────────────────────────────────────┐
  509. * │@(F2) Saves file with name "CurrentFileName.Mos_Day"    │
  510. * └────────────────────────────────────────────────────────┘
  511. *
  512. * Macro saves the current file with name "CurrentFileName.Mos_Day".
  513. * For example, @F2 saves it as FILE22.214 when date and time are
  514. * Thu  02-14-1991  10:25:00. Use this macro Jan-Sept.
  515. *
  516. @F2   Macrobegin
  517.       unmarkblock                     * Begin no marked block
  518.       insertline begline              * Insert line
  519.       insertdate                      * Get date & time to condense
  520.       delltword  delltword            * Delete spaces and year
  521.       backspace                       * Delete -
  522.       CursorLeft CursorLeft           * Keep day
  523.       backspace                       * Delete -
  524.       CursorLeft                      * Keep last digit of month,
  525.       backspace                       * Delete first digit of month
  526.       backspace                       * Delete -
  527.       delltword  delltword            * Delete spaces & day name
  528.       begline                         *
  529.       CurrentFileName                 * Get CurrentFileName
  530.       delltword                       * Delete extension
  531.       cut                             * Get file name.num to scrap
  532.       writeblock paste return         * Save file name.num
  533. *
  534. * 26 bytes Wed  10-03-1990  19:24:02
  535.  
  536.  
  537.  
  538.  
  539. * * Macro saves the current file with name "CurrentFileName.Mos_Day".
  540. * * For example, @F2 saves it as FILE22.119 when date and time are
  541. * * Sun  10-19-1990  10:25:00. Use this macro Oct-Dec.
  542. * *
  543. * @F2   Macrobegin
  544. *       unmarkblock                     * Begin no marked block
  545. *       insertline begline              * Insert line
  546. *       insertdate                      * Get date & time to condense
  547. *       delltword  delltword            * Delete spaces and year
  548. *       backspace                       * Delete -
  549. *       CursorLeft CursorLeft           * Keep day
  550. *       backspace                       * Delete -
  551. *       backspace                       * Delete last digit of month
  552. *       CursorLeft                      * Keep first digit of month,
  553. *       delltword  delltword            * Delete spaces & day name
  554. *       begline                         *
  555. *       CurrentFileName                 * Get CurrentFileName
  556. *       delltword                       * Delete extension
  557. *       cut                             * Get file name.num to scrap
  558. *       writeblock paste return         * Save file name.num
  559. * *
  560. * * 25 bytes Fri  10-19-1990  12:53:19
  561.  
  562.  
  563.  
  564.  
  565. * ┌──────────────────────────────────────────────┐
  566. * │@(F3) Saves Read-Only files                   │
  567. * └──────────────────────────────────────────────┘
  568. *
  569. * This macro will save the currently loaded file if the file attribute
  570. * on the disk copy is set to Read-Only. QEdit currently will not save
  571. * files loaded as Read-Only.
  572. *
  573. * This macro is written to use either Dos ATTRIB, Gavin's ALTER, or
  574. * Norton's FA. To change from using Dos ATTRIB change the respective
  575. * lines in the macro and reconvert with QMAC.
  576. *
  577. * One word of caution: any file on the disk in the current directory
  578. * with same prefix as the loaded file will have it's read attribute
  579. * reset to read OFF regardless of the extension. Gavin's ALTER is the
  580. * fastest way to reset attributes but it also resets ALL the attributes,
  581. * including the archive bit, of ALL files in the directory with the same
  582. * prefix.
  583. *
  584. * To save a file loaded as Read-Only just press @F3:
  585.  
  586. @F3     Macrobegin
  587.         unmarkblock                     * Unmark blocks
  588.         insertline                      * Insert blank line on top
  589.         markcolumn                      *
  590.         CurrentFileName markcolumn      * Get CurrentFileName on line
  591.         storescrbuff "1" return         * Store currentfilname to buf/1
  592.         find "." return "LB" return     * Find dot back in block
  593.   jtrue IFEXT:                          * If dot found go to IFEXT:
  594.         endline ".*"                    * Add ".*" if name has NO ext
  595.   jump FULLEXT:                         * Go to FULLEXT
  596.   IFEXT:                                * If name has extension then..
  597.         CursorRight DelToEol "*"        * Add "*" after dot
  598.   FULLEXT:                              *
  599.         copy                            * Copy "prefix.*" to scrap
  600.         delline                         * Delline
  601.         changefilename "$" return       * Change CurrentFileName to $
  602.      dos "ATTRIB -R "                   * Clear Read Only attribute...
  603.         paste return return             *    w/ Dos    ATTRIB
  604. *    dos "ALTER "                       *
  605. *       paste "/RE" return return       *    w/ Gavin  ALTER (Fastest)
  606. *    dos "FA "                          *
  607. *       paste "/R-" return return       *    w/ Norton FA
  608.         insertline                      * Insert blank line in $
  609.         unmarkblock                     * Unmark all blocks
  610.         getscrbuff "1" return           * Get origfilename on line
  611.         copy                            * Copy to scrap
  612.         delline                         * Delline
  613.         changefilename paste return     * Change $ to origfilename
  614.         return                          * Gives OK to overlay origfile
  615.         savefile                        * Save origfile
  616. *
  617. * 78 bytes Tue  01-29-1991  19:26:21 changed "B " to "B"
  618. * 80 bytes Wed  02-13-1991  16:14:29 chnaged "B" to "LB"
  619.  
  620.  
  621.  
  622. *┌──────────────────────────────────────┐
  623. *│ @(F4) Execute Dos Commands From List │
  624. *└──────────────────────────────────────┘
  625. * To run, just press @F4 and move cursor line to the desired command
  626. * to execute. Then press <enter> to execute command and return to file
  627. * you editing. Modify DOS.LIST as you need.
  628. *
  629. * Run Syntax: [command]  <enter>
  630.  
  631. @F4  Macrobegin
  632.         unmarkblock                     *
  633.         EditFile "DOS.LST" return       * Load command list
  634.         pause                           * Select command
  635.         copy                            * Get command to scrap
  636.         quit                            * Quit command list
  637.         DOS paste return                * Execute Dos command
  638. *
  639. * 28 bytes Sat  09-15-1990  08:56:57
  640. * 27 bytes Mon  02-11-1991  11:11:56 removed second return
  641.  
  642.  
  643.  
  644.  
  645. *┌──────────────────────────────────────────────────────────┐
  646. *│ @(F5) Execute Dos Commands From List With CurrentFileName│
  647. *└──────────────────────────────────────────────────────────┘
  648. *
  649. * To run, just press @F5 and move cursor line to the desired command
  650. * to execute. Then press <enter> to execute command. Press <enter> again
  651. * to return to file you were editing. Dos executes the command as if it
  652. * were run at the command line followed by the CurrentFileName, then
  653. * <enter>. Modify the DOS.LIST as you need.
  654.  
  655. * I recall getting this macro from the SemWare BBS but do not recall
  656. * the author. If anyone knows, please let me know so I can give proper
  657. * credit. It's quite a useful and simple macro.
  658. *
  659. * Run Syntax: [command] CurrentFileName <enter>
  660. *
  661. @F5 Macrobegin
  662.         unmarkblock                     *
  663.         EditFile "DOS.LST" return       * Load command list
  664.         pause                           * Select command
  665.         copy                            * Get command to scrap
  666.         quit                            * Quit command list
  667.         DOS paste " " CurrentFileName   * Execute command w/
  668.                                         * CurrentFileName
  669.         return                          *
  670. *
  671. * 30 bytes Sat  09-15-1990  09:24:37
  672.  
  673.  
  674. *----------------------------------------------------
  675. * Macro  @(F6)  does a DIR and ends up with a list of
  676. * filenames in conventional "8.3" format, no spaces!
  677. *---------------------------------------------------
  678. * *
  679. * * DIRLIST:  turn a DOS "DIR" command into a list of filenames.
  680. * *
  681. * * By:   Tim Farley        (For Ken Housley on RelayNet).
  682. * * Date: October 22, 1990
  683. * *
  684. *                                       (| = TH changes)
  685. @F6     Macrobegin
  686.         unmarkblock dropanchor         * | Mark file to return at end
  687.         Dos "DIR " Pause EndLine ">c:!"* | DIR list to temp file
  688.         Return Return                  * |
  689.         EditFile "c:!" Return Quit     * |Quit temp file if loaded
  690.                                        * | Change c:! to ramdrive
  691.                                        * | for faster operation
  692.         HorizontalWindow               * |
  693.         EditFile Return                * |
  694.         DelLine 4                      * | Delete header info  |2.2
  695.                                        * | May have to change for
  696.                                        * | DOSVER >3.3
  697.         EndFile DelLine           * Delete totals line
  698.         JFalse abort:             * Failed?  NO FILES!
  699.         BegFile                   * Back to top line, please.
  700.  LOOPDIR: *------- Remove <DIR> Lines Loop -------*             |
  701.         Begfile                         *                       |
  702.         Find "<" Return Return          * Find <dir>            |
  703.         Jfalse ENDDIR:                  *ELSE no more <dir>'s,  |
  704.                                         * clean up              |2.2
  705.         Delline                         * Delete <dir> line     |
  706.         Jump LOOPDIR:                   * And do 'till done     |
  707.         BegLine                         * Back to begline tof   |
  708.  ENDDIR:                                *                       |
  709.         BegFile                   * Back to top line, please.
  710.         GotoColumn "13" Return    * Just past filename
  711.       loopeol:
  712.         DelToEol                  * delete size/date/etc.
  713.         CursorDown                * go to next file.
  714.         JTrue loopeol:            * repeat until no more
  715.         BegFile                   * Back to tof
  716.         GotoColumn "9" Return     * Column where "." goes.
  717.       loopdot:
  718.         "." CursorLeft            * add a "." to each name
  719.         CursorDown                * try to go to next
  720.         JTrue loopdot:            * repeat until no more
  721.         BegFile
  722.         FindReplace " " Return    * replace all spaces with
  723.         DelLine Return            * NOTHING!
  724.         "NG" Return               * No prompting, just do it.
  725.       abort:
  726.        killfile                   * | Kill temp file
  727.        escape escape              * | Eliminate "changes made" message
  728.        pause closewindow          * | Pause, then close window
  729.        gotoblockbeg unmarkblock   * | Go back to file we were editing
  730. *
  731. * 100 bytes Sun  10-28-1990  11:58:10 (added TH)
  732. * 108 bytes Mon  02-11-1991  15:49:18 (added TH)
  733. * 92 bytes Thu  02-14-1991  16:40:32 (changed $$$.TMP to c:!)
  734. * 107 bytes Sun  03-10-1991  17:59:44 (added "remove <dir> loop)
  735.  
  736.  
  737. * The above macro would require QEdit 2.1 and QMAC 2.1 for use.  If
  738. * you want to put it in your QCONFIG.DAT, remove all the comments
  739. * and reformat it so it fits all on one line.
  740. *
  741. * Thanks for the detailed comments about WordRight/WordLeft.
  742. *
  743. * --Tim Farley
  744. *   SemWare Technical Support
  745.  
  746.  
  747.  
  748.  
  749.  
  750.  
  751.  
  752.  
  753. * ┌─────────────────────────────────────────────────────────┐
  754. * │@(F7) READ macfile & LOAD it's txtfile from txtfile list │
  755. * └─────────────────────────────────────────────────────────┘
  756. *
  757. * @F7 enables a file to be selected for editing and it's macfile read
  758. * from a prepared list of txtfiles. The list of txtfiles (-qm.lst)
  759. * included with FILE22 is a list of the latest macros in this series,
  760. * but it can be altered to meet your needs by adding [drive:]\[path\]
  761. * both in front of each files in the list and also in the second line of
  762. * the macro, and adding or deleting any files you choose to/from this
  763. * list. The modified macro can be put in your QCONFIG.DAT file and
  764. * macros can be loaded and read while in any directory. To run, press
  765. * @F7, cursor down to the desired file, and press <enter>. Remember,
  766. * txtfiles must have the extension "QM" and the macfiles must have the
  767. * extension "MAC".
  768. *
  769. @F7 Macrobegin
  770.     EditFile "-qm.lst" return           * Edit txtfile list
  771.     pause                               * Pause to select macro to read
  772.     endline                             * Go to end of file name
  773.     backspace backspace                 * and remove it's extension
  774.     copy quit                           * Copy file name to scrap
  775.     EditFile  paste "qm"  return        * Load selected macro txtfile
  776.     macroread paste "mac" return        * and read it's macfile
  777. *
  778. * 42 bytes Thu  10-18-1990  12:23:41
  779.  
  780.  
  781.  
  782. *┌───────────────────────────────────────────────────────────┐
  783. *│ @(F8) READ macfile from macfile list, txtfile not loaded  │
  784. *└───────────────────────────────────────────────────────────┘
  785. *
  786. * @F8 enables a macfile to be selected and read from a prepared list
  787. * of macfiles. The list of macfiles (-mac.lst) included with FILE22 is
  788. * a list of the latest macros in this series, but it can be altered to
  789. * meet your needs by adding [drive:]\[path\] in front of each files in
  790. * the list and also in the second line of the macro, and adding or
  791. * deleting any files you choose to/from this list. The modified macro
  792. * can be put in your QCONFIG.DAT file and macros can be read while in
  793. * any directory. To run, press @F8, cursor down to the desired file,
  794. * and press <enter>. Remember, macfiles must have the extension "MAC".
  795. *
  796. @F8 Macrobegin
  797.     EditFile "-mac.lst" return          * Edit macfile list
  798.     pause                               * Pause to select macro to read
  799.     endline                             * Go to end of macfile name
  800.     backspace backspace backspace       * and remove it's extension
  801.     copy quit                           * Copy macro name to scrap
  802.     macroread paste "mac" return        * Read it's macfile only
  803. *
  804. * 38 bytes Thu  10-18-1990  12:23:50
  805.  
  806.  
  807.  
  808.  
  809. *------------------------------------------------------------
  810. * #(F3_) Spell check current file WITH backup with ShareSpell,
  811. *        QCONFIG.DAT backups ON or OFF, SS makes a backup file.
  812. *------------------------------------------------------------
  813. *
  814. #F3 Macrobegin                              *
  815.     SaveFile                                * Save file
  816.     Dos "SS " CurrentFileName Return Return * Spell Check
  817.     EditFile CurrentFileName Return         * Set EditFile prompt
  818.     NewFile Return                          * Load Spell checked file
  819. *
  820. * 20 bytes Wed  02-13-1991  12:32:29
  821.  
  822.  
  823.  
  824.  
  825. *-----------------------------------------------------------------
  826. * #(F4_) Spell check WITHOUT backup, QCONFIG.DAT backups ON or OFF
  827. *-----------------------------------------------------------------
  828. * This macro does not save a backup file no matter how QCONFIG.DAT is
  829. * configured for backups. If a beep is heard, the file being spell
  830. * checked does not have an extension (no dot was found).
  831. *
  832. #F4 Macrobegin
  833.     Unmarkblock Insertline Begline      * Insert temp line with
  834.     Dropanchor CurrentFileName          * CurrentFileName marked
  835.     Find "." Return "LB" Return         * Find dot backwards in name
  836.     DelToEol ".bak"                     * Add .bak                     |
  837.     Cut Savefile                        * Cut name.bak to scrap/save it
  838.     DOS "SS " CurrentFileName Return Return * ShareSpell spell check
  839.     DOS "DEL " Paste Return Return      * Delete name.bak
  840.     EditFile CurrentFileName Return     * Set EditFile prompt
  841.     NewFile Return                      * Load spell checked file
  842. *
  843. * 62 bytes Thu  02-14-1991  12:19:16
  844. * 56 bytes Sun  02-17-1991  14:02:28
  845.  
  846.  
  847.  
  848.  
  849.  
  850.  
  851.  
  852.  
  853. *---------------------------------------------------------
  854. * #(F5_) Saves file WITHOUT backup, QCONFIG.DAT backups ON
  855. *---------------------------------------------------------
  856. * Saves files without making a backup file if QCONFIG.DAT
  857. * is configured "Yes" to "Do you want backups saved?".
  858. *
  859. #F5 Macrobegin Togglebakups SaveFile Togglebakups
  860. *
  861. * 7 bytes Tue  02-12-1991  03:39:44
  862.  
  863.  
  864.  
  865.  
  866. *----------------------------------------------------------------
  867. * #(F6_) Saves file WITHOUT backup, QCONFIG.DAT backups ON or OFF
  868. *----------------------------------------------------------------
  869. * This is an alternate version of #F5 which does not save a backup
  870. * file no matter how QCONFIG.DAT is configured for backups. If a
  871. * beep is heard, the file being saved does not have an extension
  872. * (no dot was found).
  873. *
  874. #F6 Macrobegin
  875.     Unmarkblock Insertline Begline      * Insert temp line with
  876.     Dropanchor CurrentFileName          * CurrentFileName marked
  877.     Find "." Return "LB" Return         * Find dot backwards
  878.     DelToEol ".bak"                     * Add .bak                     |
  879.     Cut Savefile                        * Cut name.bak to scrap/save file
  880.     DOS "del " Paste Return Return      * Delete name.bak
  881. *
  882. * 47 bytes Thu  02-14-1991  12:11:50
  883. * 41 bytes Sun  02-17-1991  14:30:32
  884.  
  885.  
  886. * Here's an alternate version of #F6 that saves a file without a
  887. * backup no matter how QCONFFIG.DAT is configured. Be careful that no
  888. * line feed or carriage return characters are in the file or the saved
  889. * file will be formatted with these characters removed.
  890. *
  891. * #F6 Macrobegin                        *
  892. *     unmarkblock killfile              * Kill disk copy so writeblock
  893. *                                       * works without prompts
  894. *     writeblock currentfilename return * Save file as block
  895. *
  896. * 8 bytes Thu  02-14-1991  12:28:01
  897.  
  898.  
  899.  
  900.  
  901.  
  902.  
  903.  
  904. *--------------------------------------
  905. * #(F7_) Deletes CurrentFileName Backup
  906. *--------------------------------------
  907. *
  908. #F7 Macrobegin
  909.     Unmarkblock Insertline Begline      * Insert temp line with
  910.     Dropanchor CurrentFileName          * CurrentFileName marked
  911.     Find "." Return "LB" Return         * Find dot backwards
  912.     DelToEol ".bak"                     * Add .bak                     |
  913.     Cut                                 * Cut name.bak to scrap
  914.     DOS "DEL " Paste Return Return      * Delete name.bak
  915. *   DOS "DX " Paste "//DEL"             * Alternate verify delete
  916. *   Return Return                       * with Directory Extender DX
  917. *
  918. * 46 bytes Wed  02-13-1991  16:15:49
  919. * 40 bytes Sun  02-17-1991  14:10:19
  920.  
  921.  
  922.  
  923. *----------------------------------
  924. * #(F8_) Edit CurrentFileName Backup
  925. *----------------------------------
  926. *
  927. #F8 Macrobegin
  928.     Unmarkblock Insertline Begline      * Insert temp line with
  929.     Dropanchor CurrentFileName          * CurrentFileName marked
  930.     Find "." Return "LB" Return         * Find dot backwards
  931.     DelToEol ".bak"                     * Add .bak                     |
  932.     Cut                                 * Cut name.bak to scrap
  933.     EditFile Paste Return               * Load name.bak
  934. *
  935. * 37 bytes Wed  02-13-1991  16:16:03
  936. * 31 bytes Sun  02-17-1991  14:10:06
  937.  
  938.  
  939.  
  940. *---------------------------------------------------
  941. * @(PgUp), Page Up by paragraphs, modified "Page Up"
  942. *---------------------------------------------------
  943. *
  944. * This macro does a modified page UP with the cursor at the top of the
  945. * screen at the beginning of a paragraph, the first paragraph on the
  946. * screen being the last parapgraph which might not have been fully
  947. * visible on the top of previous screen. This is handy for getting to
  948. * and from paragraphs during editing or viewing.
  949. *
  950. 177 MacroBegin PageUp PrevPara BegLine Maketopofscreen
  951. *
  952. * 8 bytes Thu  02-21-1991  14:23:43
  953.  
  954.  
  955.  
  956.  
  957. *-----------------------------------------------------
  958. * @(PgDn), Page Down by paragraphs, modified "Page Dn"
  959. *----------------------------------------------------
  960. *
  961. * This macro does a modified page DOWN with the cursor at the top of
  962. * the screen on the end of the last paragraph which was not fully
  963. * visible on the previous screen. This is handy for getting to and from
  964. * paragraphs during editing or viewing.
  965. *
  966. 176 MacroBegin PageDown EndPara BegLine Maketopofscreen
  967. *
  968. * 8 bytes Thu  02-21-1991  19:11:14
  969.  
  970.  
  971.  
  972.  
  973.  
  974. *┌───────────────────────────────────────────────────────────────────┐
  975. *│@(h) Finds first word on cursor line marked in document below      │
  976. *└───────────────────────────────────────────────────────────────────┘
  977. *
  978. *        @h macro has 2 steps:
  979. *
  980. *        1. Press @ and h at the same time. An ! shows at the
  981. *        end of the top line. Cursor down to desired line in Index.
  982. *
  983. *        2. Press Enter. The macro first erases the !, and
  984. *        then finds the first word on the cursor line in the document
  985. *        below marked with (...).
  986. *
  987. * See BOOK15.QM for more details.
  988. *
  989. @h Macrobegin
  990.         unmarkblock                     * Unmark any marked blocks
  991.         begfile endline                 * Go to file begin endline
  992.         "!"                             * Put ! at endline
  993.         begline
  994.         find "!" return return begline  * Highlight !
  995.         pause                           * Pause for Index selection
  996.         wordright markword              * Mark first word on line
  997.         copy                            * Copy word to scrap buffer
  998.         begfile                         * Begfile
  999.         find "!" return return delch    * Find & delete !
  1000.         endpara                         * Go to end of Index
  1001.         makectrofscreen                 * Cursor line center of window
  1002.         find "(" paste ")"
  1003.         return "I" return               * Find first marked word in doc
  1004.  jfalse NOMARK:
  1005.         begline                         * If mark found go to begline
  1006.  jump END:
  1007.  NOMARK:
  1008.         begfile                         * If no mark found go to begfile
  1009.  END:
  1010. *
  1011. * 47 bytes Fri  09-14-1990  14:06:26
  1012.  
  1013.  
  1014.  
  1015. *┌────────────────────────────────────────────────────────────────┐
  1016. *│@(f) Executes programs requiring filename without full pathname │
  1017. *└────────────────────────────────────────────────────────────────┘
  1018. *
  1019. @f  Macrobegin
  1020.     Unmarkblock Insertline          * Insert temp line
  1021.     CurrentFileName                 * with CurrentFileName
  1022.     MarkCharacter                   * Begin mark
  1023.     Find "\" Return "B" Return      * Find \ backwards
  1024.     CursorRight Cut                 * Cut filename to scrap
  1025.     Delline                         * Delete temp line
  1026.     Dos "dir " Paste Return         * Execute "dir"
  1027.                                    ** Change "dir " to "program " name
  1028.                                    ** or modify like @F5 to execute |2.1
  1029.                                    ** from a list of DOS commands.  |
  1030. *
  1031. * 29 bytes Wed  01-23-1991  20:59:24
  1032. * 29 bytes Sat  02-23-1991  17:25:13 only comments changed
  1033.  
  1034.  
  1035.  
  1036.  
  1037. *┌──────────────────────────────────┐
  1038. *│@(q) QUITs all Files in Ring      │
  1039. *└──────────────────────────────────┘
  1040. *
  1041. @q      Macrobegin
  1042.     LOOP:
  1043.         quit
  1044.         jump LOOP:
  1045. *
  1046. * 8 bytes Sat  09-29-1990  00:03:46
  1047.  
  1048.  
  1049.  
  1050. * -----------------------------------------------
  1051. *  ^(w_) Scroll UP, cursor bar stays fixed
  1052. * -----------------------------------------------
  1053. *
  1054. ^w  macrobegin scrollup cursorup
  1055. * 6 bytes Fri  02-22-1991  17:01:18
  1056.  
  1057.  
  1058.  
  1059. * -----------------------------------------------
  1060. *  ^(z_) Scroll DOWN, cursor bar stays fixed
  1061. * -----------------------------------------------
  1062. *
  1063. ^z  macrobegin scrolldown cursordown
  1064. * 6 bytes Fri  02-22-1991  17:01:29
  1065.  
  1066.  
  1067.  
  1068.  
  1069.  
  1070.  
  1071. * These two macros, @w and @z, were originally written by Karl Brendel
  1072. * as below. I have modified them both slightly so that the cursor bar
  1073. * remains fixed in each window while scrolling so that corresponding
  1074. * lines will always be adjacent across the cursor bar (not the status
  1075. * line), so it's easy to spot things that don't match up between the
  1076. * files.
  1077. *
  1078. * Interestingly enough, if no window is open, both @w and @z will
  1079. * scroll similar to ^w and ^z macros above except 2 lines will be
  1080. * scrolled instead of one. For this reason I have replaced ScrollUp and
  1081. * ScrollDn in QCONFIG.DAT with macros @w and @z, 2 macros doing 4
  1082. * tasks - and also less keystrokes for scrolling!
  1083. *
  1084. * ------------------------------------------------
  1085. * @(w) Scroll two windows up in sync
  1086. * ------------------------------------------------
  1087. @w macrobegin
  1088.         scrollup cursorup nextwindow
  1089.         scrollup cursorup prevwindow
  1090. * 10 bytes Fri  02-22-1991  16:52:31
  1091.  
  1092.  
  1093. * ------------------------------------------------
  1094. * @(z) Scroll two windows down in sync
  1095. * ------------------------------------------------
  1096. @z macrobegin
  1097.         scrolldown cursordown nextwindow
  1098.         scrolldown cursordown prevwindow
  1099. * 10 bytes Fri  02-22-1991  16:52:39
  1100.  
  1101.  
  1102.  
  1103. * ==============================================================================
  1104. * Date: 08-18-90 (21:28)           Number: 2724      Semware - Qedit Suppor
  1105. *   To: JACK LAUFER                Refer#: NONE
  1106. * From: KARL BRENDEL                 Read: YES
  1107. * Subj: Qedit Enhancements           Conf: (21) ILink
  1108. * ------------------------------------------------------------------------
  1109. * JL>I've been a registered Qedit user for some time now and very much
  1110. * JL>appreciate the quality of the program and your support. One
  1111. * JL>enhancement which I would very much like to see -- and one of only a
  1112. * JL>few Brief editor features that I sorely miss -- is the ability split
  1113. * JL>windows vertically.  This would be very helpful when working with
  1114. * JL>(e.g., comparing) mailing lists, simple program code, etc.
  1115. *
  1116. * I understand your desire, Jack. Much of what you want to do, however,
  1117. * can be helped by using these or similar macro assignments:
  1118. *
  1119. * @w macrobegin scrollup nextwindow scrollup prevwindow
  1120. *
  1121. * @z macrobegin scrolldown nextwindow scrolldown prevwindow
  1122. *
  1123. * These two macros scroll adjacent horizontal windows up or down in
  1124. * sync. Thus, you can open two windows, load your two files of
  1125. * interest, one in each window, "manually" bring two corresponding
  1126. * lines to the middle of the screen (or top/bottom of the two windows),
  1127. * then use these macros to scroll up and down within the two files
  1128. * together. Since corresponding lines will always be adjacent across
  1129. * the status line, it's easy to spot things that don't match up between
  1130. * the files.
  1131. *                            
  1132. * Is this clear? If not, assign these macros, bring up QEdit on one
  1133. * file, open a second window, bring up the second file, then just play
  1134. * with the macros for a while.
  1135. * ---
  1136. *  * InterLink: The Right Place(tm) * Atlanta, GA * (404) 476-2607
  1137.  
  1138. * (Version) History:
  1139. *
  1140. *  1.0 - Initial version named SORT10.ZIP
  1141. *  1.1 - changed and shortened Alt-f3 to keep extraneous files
  1142. *        from ring
  1143. *      - Changed file names from SORTxx.xxx to FILExx.xxx.
  1144. *  1.2 - DX Directory Extended not included to save download time.
  1145. *  1.2a- Changed other file names in series, this is an update.
  1146. *  1.3 - Added @4 to load files from PickList, wild cards OK.
  1147. *      - Changed j:$ to c:! in macros and batch file.
  1148. *      - Changed .QL and .LST files.
  1149. *      - Changed key assignments from alternate_functions
  1150. *        to alternate_numbers.
  1151. *      - All macros shortened.
  1152. *  1.4 - FILE-DX.BAT was not saving "echo .." initialization; corrected.
  1153. *      - Modified macros @1-4 so Insert does NOT have to be ON.
  1154. *      - Added AltWordSet to @1-4 to get all files.
  1155. *      - Removed need to use scratch buffers in @3.
  1156. *      - Added @5 to LOAD a file whose name is at the cursor.
  1157. *      - Added @6 to execute Dos Commands From List.
  1158. *      - Added @7 to EXECUTE DOS commands from List
  1159. *        with CurrentFileName.
  1160. *      - Added @8 to read macfile of txtfile that is loaded.
  1161. *      - Added ^3 to save Read-Only files.
  1162. *      - Added ^1 and ^2 to save files with date-time name.
  1163. *      - Modified @1-4 and batch files to exclude directories in file
  1164. *        list and PickList.
  1165. *      - Removed check to quit c:! if already loaded in @1-4.
  1166. *      - Changed @4 to use only PICK.BAT.
  1167. *  1.5 - Added @9 to select file to edit from RingList
  1168. *      - Added @0 to select file to edit from RingList if new files have
  1169. *        been loaded since making last RingList
  1170. *      - Added @h to FIND items or macros in Index.
  1171. *      - Added @q to QUIT all files in ring.
  1172. *  1.6 - Added @6 to re-LOAD current file from disk copy.
  1173. *      - Modified @9 and @0 to be faster and shorter.
  1174. *      - Modified @F2 for correct extension Oct-Dec.
  1175. *      - Changed @F1 thru @F5 key assignments.
  1176. *  1.7 - Added @F6 to turn "DIR" command into a "8.3" list of filenames,
  1177. *        written by  T. Farley of SemWare.
  1178. *      - Added @F7 and @F8 to read and load txtfiles and macfiles from
  1179. *        a prepared list of active txtfiles and macfiles.
  1180. *      - Modified @F2 for Oct-Dec and added alternate version
  1181. *        for Jan-Sept.
  1182. *      - DOS.LST was inadvertantly left out of versions since 1.4.
  1183. *        It is now included.
  1184. *  1.8 - Modified @F6 for DOS Ver 3.3, other Dos versions not tested.
  1185. *      - Modified documentation and added START.BAT.
  1186. *      - Added @z to load all files in "Ring" buffer.
  1187. *      - Modified @F2 for Jan-Sep and added alternate version
  1188. *        for Oct-Dec.
  1189. *  1.9 - Added @F to execute programs requiring filename without full
  1190. *        path name.
  1191. *      - Corrected @h Index Use instructions.
  1192. *      - Shortened @F3 2 bytes.
  1193. *  2.0 - Added #F3 & #F4 to spell check with ShareSpell.
  1194. *      - Added #F5 & #F6 to save files without making backups.
  1195. *      - Added #F7 & #F8 to delete and edit CurrentFileName Backup.
  1196. *      - Modified @F1 to handle file names with no extension.
  1197. *      - Changed @F3 in "B" to "LB" to search for dot only in block.
  1198. *      - From @F4 removed second return to not pause after executing.
  1199. *        DOS command.
  1200. *      - Modified @F6 to handle multiple runs correctly.
  1201. *      - Changed $$$.TMP to C:! in @F6, shortened 16 bytes.
  1202. *      - Change @z key to @7.
  1203. *  2.1 - Added @PgUp and @PgDn for modified "Page Up and Page Down".
  1204. *      - Added @w and @z to scroll two windows up/down in sync.
  1205. *      - Added ^w and ^z to scroll up/down so cursor bar stays fixed.
  1206. *      - Removed unnecessary lines and shortened #F4,6,7,8.
  1207. *  2.2 - Changed DelLine 6 ot 4 in @f6 to eliminate deletion of
  1208. *        top 2 files in DIR list.
  1209.  
  1210. * Tom Hogshead  March 12, 1991
  1211.